<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>新麦CMS - Powered by X-mai.com </title>
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl?>/css/manage/style/reset.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl?>/css/manage/style/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl?>/css/manage/style/colors/blue.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl?>/css/manage/jqueryui/css/jquery-ui.custom.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl?>/css/manage/plugins/superfish/css/superfish.css" />
<script src="<?php echo Yii::app()->request->baseUrl?>/css/manage/jqueryui/jquery.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl?>/css/manage/plugins/superfish/js/superfish.min.js"></script>
</head>
<body>
<div id="header">
	<div id="logo">
		<h1>
			<a href="" title="新麦CMS"><img
				src="<?php echo Yii::app()->request->baseUrl?>/css/manage/style/images/logo.png" alt="新麦CMS" /></a>
		</h1>
	</div>
	<!-- end logo -->
	<!-- user -->
	<ul id="user">
		<li class="first">网站语言：
        <?php
        $user = Yii::app ()->session ['user'];
        $authlang = $user['admingrouppermission']['authlang'];
        ?>
        <select name="mgrlang" onchange="mgrLang(this.value)">
		<?php
        if($authlang=='All' || $user['user']['loginname'] == 'administrator'){
            if($this->mgrlang=='zh_cn'){
                ?>
                <option value="zh_cn" selected="selected">简体中文</option>
                <option value="en_us">英文</option>
            <?php
            }else{
                ?>
                <option value="zh_cn" >简体中文</option>
                <option value="en_us" selected="selected">英文</option>
            <?php
            }
        }else if($authlang=='zh_cn'){
            ?>
            <option value="zh_cn" selected="selected" >简体中文</option>
            <?php
        }else if($authlang=='en_us'){
            ?>
            <option value="en_us" selected="selected">英文</option>
            <?php
        }
		?>
		</select>
		</li>
		<li class="highlight last">【<?php echo Yii::app()->session['user']['user']['username']?>】<a href="../default/logout" >退出</a></li>
	</ul>
	<?php $this->widget('application.modules.manage.widgets.ViewWidgets',array('view'=>'menu'));?>
	
</div>

<?php echo $content; ?>
<?php $this->widget('application.modules.manage.widgets.ViewWidgets',array('view'=>'foot'));?>

<script src="<?php echo Yii::app()->request->baseUrl?>/css/manage/jqueryui/jquery-ui.custom.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl?>/css/manage/js/global.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl?>/css/manage/js/btn.js"></script> 
<script>
function mgrLang(mgrlang){
	$.get('../console/mgrlang',{lang:mgrlang},function(res){
		if(res==true){
			window.location.reload();
		}
	},'json');
}
</script>
</body>
</html>    
